Skip to content

Added the vendored version of scalar#1514

Open
vaytea wants to merge 6 commits into
juhaku:masterfrom
vaytea:master
Open

Added the vendored version of scalar#1514
vaytea wants to merge 6 commits into
juhaku:masterfrom
vaytea:master

Conversation

@vaytea

@vaytea vaytea commented Jan 26, 2026

Copy link
Copy Markdown

now the scalar shouldn't need the internet connection to load :))

@abdulalalalalala

Copy link
Copy Markdown

this will be a nice upgrade over swagger considering how easy it is for scalar ui to configure header authorization. good luck! @vaytea

@CommanderStorm CommanderStorm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add the ability to update this arefact?

Here is how swagger does it and this way it is clear what this blob on disk is:

utoipa/justfile

Lines 83 to 105 in 2492086

# Update vendored Swagger UI to the given version. Usage: `just update-swagger-ui 5.18.2`
update-swagger-ui version:
#!/usr/bin/env bash
set -eu -o pipefail
zip_name="v{{version}}.zip"
curl -sSL -o "$zip_name" "https://github.com/swagger-api/swagger-ui/archive/refs/tags/v{{version}}.zip"
sed_flags=(-i)
if [[ "$(uname)" == "Darwin" ]]; then
sed_flags+=('')
fi
echo "Update vendored Swagger UI"
mv "$zip_name" ./utoipa-swagger-ui-vendored/res/
sed "${sed_flags[@]}" "s|version: \`.*\`|version: \`{{version}}\`|" ./utoipa-swagger-ui-vendored/README.md
sed "${sed_flags[@]}" "s|version: \`.*\`|version: \`{{version}}\`|" ./utoipa-swagger-ui-vendored/src/lib.rs
sed "${sed_flags[@]}" "s|res/v.*\.zip|res/v{{version}}.zip|" ./utoipa-swagger-ui-vendored/src/lib.rs
echo "Update utoipa-swagger-ui Swagger UI version"
sed "${sed_flags[@]}" "s|tags/v.*>|tags/v{{version}}.zip>|" ./utoipa-swagger-ui/README.md
sed "${sed_flags[@]}" "s|tags/v.*>|tags/v{{version}}.zip>|" ./utoipa-swagger-ui/src/lib.rs
sed "${sed_flags[@]}" "s|tags/v.*\.zip|tags/v{{version}}.zip|" ./utoipa-swagger-ui/build.rs

@vaytea vaytea reopened this May 23, 2026
@vaytea

vaytea commented May 23, 2026

Copy link
Copy Markdown
Author

sorry about the delay,
I live in Iran with almost no internet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants